<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
  <div id="workspace" class="col-md-8">
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <div>
  	<h4>修改密码:</h4>
  	<form class="form col-md-12 center-block" action="../user.con" method="post">
            <div class="form-group">
            <input type="hidden" name="work" value="modifyPwd" />
            </div>
            <div class="form-group">
              <input type="password" name="pastPwd" class="form-control input-lg" placeholder="Enter your past password">
            </div>
            <div class="form-group">
              <input type="password" name="newPwd" class="form-control input-lg" placeholder="Enter your now password">
            </div>
             
			 <div class="form-group">
              <input type="password" name="tryPwd" class="form-control input-lg" placeholder="Try again input your now password">
            </div>
         <div class="row">
         <div class="col-md-4"></div>
         <div class="col-md-4">
          <c:choose>
          	<c:when test="${sessionScope.user.category eq 'admin' }">
          		<button class=" btn btn-warning"><a href="../admin/admin.jsp">关闭修改</a></button>
          	</c:when>
          	<c:when test="${sessionScope.user.category eq 'worker' }">
          		<button class=" btn btn-warning"><a href="../worker/worker.jsp">关闭修改</a></button>
          	</c:when>
          	<c:when test="${sessionScope.user.category eq 'leader' }">
 				<button class=" btn btn-warning"><a href="../leader/leader.jsp">关闭修改</a></button>         		
          	</c:when>
          </c:choose>
          
          <button class="success pull-right submit btn btn-success">确认提交</button>
         </div>
          <div class="col-md-4"></div>
		  </div>	
          </form>
	
   </div>
  </div>
</body>
</html>